package Demo01;

import java.util.ArrayList;

public class Demo02Integer {
    public static void main(String[] args) {
        Integer in = 1;//相当于 Integer in = new Integer(1);
        //in是包装类，无法参与运算，可以自动转换为基本类型的数据，再参与计算
        in = in + 1;
        System.out.println(in);

        ArrayList<Integer> list = new ArrayList<>();
        list.add(in);
        System.out.println(list.get(0));

    }
}
